package com.lanqiao.test;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

@Component
@Scope("prototype")
public class Printer {

    @Autowired
    @Qualifier("blackInk")
    private   Ink ink;
    //@Repository(name = "a5")
    private   Paper paper;
    private   String  name;
    private   Double  price;
    /**
     * 启动以后
     */

    public void start(){

    }
}
